﻿using ReflectionStudio.Components.UserControls;
using ReflectionStudio.Core.Events;
using System;
using System.ComponentModel;
using System.Data;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Media;
namespace WPFExcelReport
{
    public partial class YGRQC02 : DocumentBase
    {

        VYGRQC02 vm;
        public YGRQC02()
        {
            vm = new VYGRQC02();
            DataContext = vm;
            InitializeComponent();
            this.Name = "色棉质量";
            cGB33.LO = "01";
            cGB33.LB = "YS";
            cGB33.QPKRS = "SM";
            cGB33.QCDOCTYP = "YGRQCSM"; 
            cGB33.GSART = "2";
            cGB33.FARBE = "CGNM0020";
            cGB33.GPSPPART = "5602141207";
            cGB33.GPFBPART = "LS207463";

        }
        private void Window_Loaded(object sender, RoutedEventArgs e)
        {
            try
            {
                if (DesignerProperties.GetIsInDesignMode(this))
                    return;
                if (IsLoaded)
                    return;
                IsLoaded = true;
            }
            catch (Exception ex)
            {
                Tracer.Error(ex.StackTrace, ex);
            }
            return;

        }
        private void ReSetTab()
        {

        }

        private void YMQCCommand(object sender, RoutedEventArgs e)
        {
            cGB33.LO = "01";
            cGB33.LB = "YS";
            cGB33.QPKRS = "YM";
            cGB33.GSART = "1";
        }

        private void SMQCCommand(object sender, RoutedEventArgs e)
        {
            cGB33.LO = "01";
            cGB33.LB = "YS";
            cGB33.QPKRS = "SM";
            cGB33.GSART = "2";
        }
    }
}
